import 'package:flutter/material.dart';

// 纵向列表

void main()=>runApp(myapp());

class myapp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home:Scaffold(
        appBar: new AppBar(
          title: new Text('列表组件')
        ),
        body: new ListView( //列表组件
          children: <Widget>[
            new ListTile(  //listTite组件（列表瓦片）
              leading: new Icon(Icons.access_time),
              title: new Text('access_time'),
            ),
            new ListTile(
              leading: new Icon(Icons.account_balance),
              title: new Text('account_balance'),
            ),

            // 图片列表
            new Image.network('http://jspang.com/static/upload/20181111/G-wj-ZQuocWlYOHM6MT2Hbh5.jpg'),
            new Image.network('http://jspang.com/static/upload/20181109/1bHNoNGpZjyriCNcvqdKo3s6.jpg'),
            new Image.network('http://jspang.com/static/myimg/typescript_banner.jpg'),
            new Image.network('http://jspang.com/static/myimg/smile-vue.jpg'),

          ],
        ),
      )
    );
  }
}